home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIContentViewerFile.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIContentViewerFile.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIContentViewerFile_h__
  6. #define __gen_nsIContentViewerFile_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIPrintSettings_h__
  14. #include "nsIPrintSettings.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIDOMWindowInternal; /* forward declaration */
  22.  
  23. class nsIWebProgressListener; /* forward declaration */
  24.  
  25. #include <stdio.h>
  26.  
  27. /* starting interface:    nsIContentViewerFile */
  28. #define NS_ICONTENTVIEWERFILE_IID_STR "6317f32c-9bc7-11d3-bccc-0060b0fc76bd"
  29.  
  30. #define NS_ICONTENTVIEWERFILE_IID \
  31.   {0x6317f32c, 0x9bc7, 0x11d3, \
  32.     { 0xbc, 0xcc, 0x00, 0x60, 0xb0, 0xfc, 0x76, 0xbd }}
  33.  
  34. /**
  35.  * The nsIDocShellFile    
  36.  */
  37. class NS_NO_VTABLE nsIContentViewerFile : public nsISupports {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERFILE_IID)
  41.  
  42.   /* readonly attribute boolean printable; */
  43.   NS_IMETHOD GetPrintable(PRBool *aPrintable) = 0;
  44.  
  45.   /* [noscript] void print (in boolean aSilent, in FILE aDebugFile, in nsIPrintSettings aPrintSettings); */
  46.   NS_IMETHOD Print(PRBool aSilent, FILE * aDebugFile, nsIPrintSettings *aPrintSettings) = 0;
  47.  
  48.   /* [noscript] void printWithParent (in nsIDOMWindowInternal aParentWin, in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener); */
  49.   NS_IMETHOD PrintWithParent(nsIDOMWindowInternal *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSICONTENTVIEWERFILE \
  55.   NS_IMETHOD GetPrintable(PRBool *aPrintable); \
  56.   NS_IMETHOD Print(PRBool aSilent, FILE * aDebugFile, nsIPrintSettings *aPrintSettings); \
  57.   NS_IMETHOD PrintWithParent(nsIDOMWindowInternal *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSICONTENTVIEWERFILE(_to) \
  61.   NS_IMETHOD GetPrintable(PRBool *aPrintable) { return _to GetPrintable(aPrintable); } \
  62.   NS_IMETHOD Print(PRBool aSilent, FILE * aDebugFile, nsIPrintSettings *aPrintSettings) { return _to Print(aSilent, aDebugFile, aPrintSettings); } \
  63.   NS_IMETHOD PrintWithParent(nsIDOMWindowInternal *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener) { return _to PrintWithParent(aParentWin, aThePrintSettings, aWPListener); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSICONTENTVIEWERFILE(_to) \
  67.   NS_IMETHOD GetPrintable(PRBool *aPrintable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintable(aPrintable); } \
  68.   NS_IMETHOD Print(PRBool aSilent, FILE * aDebugFile, nsIPrintSettings *aPrintSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->Print(aSilent, aDebugFile, aPrintSettings); } \
  69.   NS_IMETHOD PrintWithParent(nsIDOMWindowInternal *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrintWithParent(aParentWin, aThePrintSettings, aWPListener); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsContentViewerFile : public nsIContentViewerFile
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSICONTENTVIEWERFILE
  80.  
  81.   nsContentViewerFile();
  82.  
  83. private:
  84.   ~nsContentViewerFile();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsContentViewerFile, nsIContentViewerFile)
  92.  
  93. nsContentViewerFile::nsContentViewerFile()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsContentViewerFile::~nsContentViewerFile()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* readonly attribute boolean printable; */
  104. NS_IMETHODIMP nsContentViewerFile::GetPrintable(PRBool *aPrintable)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* [noscript] void print (in boolean aSilent, in FILE aDebugFile, in nsIPrintSettings aPrintSettings); */
  110. NS_IMETHODIMP nsContentViewerFile::Print(PRBool aSilent, FILE * aDebugFile, nsIPrintSettings *aPrintSettings)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* [noscript] void printWithParent (in nsIDOMWindowInternal aParentWin, in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener); */
  116. NS_IMETHODIMP nsContentViewerFile::PrintWithParent(nsIDOMWindowInternal *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_nsIContentViewerFile_h__ */
  126.